package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-10-31  11:12
 */
public class Circle extends Shape{
    float r = 0;

    public Circle(float r) {
        this.r = r;
    }

    @Override
    void getArea() {
        System.out.printf("%.2f\n",Math.PI * r * r);
    }
}
